package com.yicong.ants.bean.ad;



/**
 * @author cch
 * @version 2021/6/2
 */

public class AntsAd {
    private int ad_id = -1;
    private String display_type;
    private String display;
    private String url;
    private String position;

    public AntsAd() {
    }

    public int getAd_id() {
        return this.ad_id;
    }

    public String getDisplay_type() {
        return this.display_type;
    }

    public String getDisplay() {
        return this.display;
    }

    public String getUrl() {
        return this.url;
    }

    public String getPosition() {
        return this.position;
    }

    public AntsAd setAd_id(int ad_id) {
        this.ad_id = ad_id;
        return this;
    }

    public AntsAd setDisplay_type(String display_type) {
        this.display_type = display_type;
        return this;
    }

    public AntsAd setDisplay(String display) {
        this.display = display;
        return this;
    }

    public AntsAd setUrl(String url) {
        this.url = url;
        return this;
    }

    public AntsAd setPosition(String position) {
        this.position = position;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof AntsAd)) return false;
        final AntsAd other = (AntsAd) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getAd_id() != other.getAd_id()) return false;
        final Object this$display_type = this.getDisplay_type();
        final Object other$display_type = other.getDisplay_type();
        if (this$display_type == null ? other$display_type != null : !this$display_type.equals(other$display_type))
            return false;
        final Object this$display = this.getDisplay();
        final Object other$display = other.getDisplay();
        if (this$display == null ? other$display != null : !this$display.equals(other$display))
            return false;
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
        final Object this$position = this.getPosition();
        final Object other$position = other.getPosition();
        if (this$position == null ? other$position != null : !this$position.equals(other$position))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof AntsAd;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getAd_id();
        final Object $display_type = this.getDisplay_type();
        result = result * PRIME + ($display_type == null ? 43 : $display_type.hashCode());
        final Object $display = this.getDisplay();
        result = result * PRIME + ($display == null ? 43 : $display.hashCode());
        final Object $url = this.getUrl();
        result = result * PRIME + ($url == null ? 43 : $url.hashCode());
        final Object $position = this.getPosition();
        result = result * PRIME + ($position == null ? 43 : $position.hashCode());
        return result;
    }

    public String toString() {
        return "AntsAd(ad_id=" + this.getAd_id() + ", display_type=" + this.getDisplay_type() + ", display=" + this.getDisplay() + ", url=" + this.getUrl() + ", position=" + this.getPosition() + ")";
    }
}
